/******************************************************************************
 * Copyright (C) 2024 EternalChip, Inc.(Gmbh) or its affiliates.
 *
 * All Rights Reserved.
 *
 * @file
 *
 * @par dependencies
 * -
 * -
 * -
 *
 * @author
 *
 * @brief
 *
 * Processing flow:
 *
 * call directly.
 *
 * @version
 *
 *****************************************************************************/
#ifndef KEY_H
#define KEY_H

#include "stdint.h"

typedef struct
{
    uint16_t  u16Size;
    uint16_t *u16Buf;
    uint16_t  u16Head;
    uint16_t  u16Count;
    uint16_t  u16Valid_Value;
    uint16_t  u16Invalid_Value;
    uint8_t   u8State;
} STRUCT_IO_SLIDING_FILTER;

uint8_t Get_KeyStatus(STRUCT_IO_SLIDING_FILTER *pKey_Sliding_Filter);

#endif